<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// map结构
			let map = new Map();
			map.set('name','freddyhuang')
			map.set('age',32);
			map.set('score',100)
			map.set('name','gainame')
			console.log(map)
			console.log(map.get('name'))
			
			
			// set结构
			let set = new Set();
			set.add(1)
			set.add(2)
			set.add(3)
			set.add(3)
			console.log(set)
			
			
			var obj = {
				name:"freddyhuang",
				age:32,
				getName:function(){
					return obj.name
				}
			}
			
			// 复制对象
			var objscopy = JSON.parse(JSON.stringify(obj))
			console.log(objscopy)
			
			var objcopy = {...obj}
			console.log(objcopy)
		</script>
	</body>
</html>